package cn.iune.erp.inventory;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

import cn.iune.common.base.IBizDataIface;

public interface IStorageItemBatchService extends IBizDataIface {
	
	public void insert(StorageItemBatch obj);
	
	public void delete(String fID);
	
	public void update(StorageItemBatch obj);

	public List<StorageItemBatch> getAll();
	
	public StorageItemBatch getByID(String fID);


//	List<StorageItemBatch> getStorageByStorageNo(String storageNo, String enterpriseNo);
//
//	List<StorageItemBatch> getFloorByStorageNo(String storageNo, String enterpriseNo);

	StorageItemBatch packing(String userId, String enterpriseNo, String enterpriseName);

//	JSONObject queryJDBC_Store(JSONObject data) throws Throwable;

	List<StorageItemBatch> queryList(JSONObject param) throws Throwable;

	List<StorageItemBatch> getByStorageID(String storageNo, String enterpriseNo);

	List<StorageItemBatch> getByItemID(String itemID, String enterpriseNo);

	StorageItemBatch getByNo(String storageID, String itemID, String batchNo, String enterpriseNo);

	BigDecimal getCostingAmount(String enterpriseNo) throws Throwable;

	BigDecimal getQuantityL(String enterpriseNo) throws Throwable;

	JSONObject save(JSONObject object) throws ParseException;

	List<StorageItemBatch> getList(String storehouseID, String itemID, String enterpriseNo);

	StorageItemBatch storeRegister(String storageID, String storehouseID, String itemID, String batchNo,
			BigDecimal itemQuantity, BigDecimal costingAmount, BigDecimal pieceQuantity, String enterpriseNo,
			String enterpriseName, String userId);

	StorageItemBatch pickRegister(String storageID, String storehouseID, String itemID, String batchNo,
			BigDecimal itemQuantity, BigDecimal costingAmount, BigDecimal pieceQuantity, String enterpriseNo,
			String enterpriseName, String userId);





}